Ticket #20 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Method with property declaration fails to return

Reported by: wolf <rowan@…> Owned by: mooneer
Priority: major Milestone:
Component: interpreter Version: 1.0a2
Keywords: Cc:

Description

Testcase:

method a() [
	property anything;
	
	ret = "from a";
];

method b() [
	ret = "from b";
];

property found;
found = "unset";

found = a();
found|print;

found = b();
found|print;

Output:

unset
from b

Expected:

from a
from b

Change History

comment:1 Changed 4 years ago by wolf <rowan@…>

Odly, if you call the methods and print them:

a()|print;
b()|print;

You get the expected output.

comment:2 Changed 4 years ago by mooneer

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r240.

Note: See TracTickets for help on using tickets.