Closed patrickbkr closed 2 years ago
Thanks for the issue. I'll take a look asap. Do you know if $ts2
was defined on your code? The problem here seems to me to be the ^create
not recognising :ts1
as a valid named parameter (there is no attribute called ts1
) so (just as new) it ignores that parameter. Than it creates a obj without relationship. Then when you try to access $pts.test-set
it returns a CITestSet type object and accessing any column on a model type object returns it's column attribute representation and then it uses Red's version of ~.
For fixing that, maybe it's just the case of changing :$ts1
for :test-set($ts1)
. Or even better: change both .^create
s with a single:
$pts = CIPlatformTestSet.^create: :test-set{};
That should create CIAtformTestSet and the CITestSet related to it.
Please let me know if any of this helps.
Changing ti use the right named arg:
Ouch. That's me failing to golf my codebase. :facepalm: Thank's for taking a look at this!
I think this is solved. Closing.
Good it's working! Have you seen my new branch? Do you think that would make it easier to spot that kind of problems?
I have seen the branch. I think erroring on accessing columns on typeobjects will definitely make it easier to understand what's wrong in such cases. So a big +1 from me.
The following code should print
Hi 1
but instead prints