Compiler bug? walkback in closure type inference #676
tompalmer
22 Jul 2009
I think I like Obj? better than making it an error.
brian
22 Jul 2009
Promoted to ticket #676 and assigned to brian
brian
8 Sep 2009
Ticket resolved in 1.0.46
Fix closure type inference against generic parameters like V to infer as Obj?
KevinKelley
22 Jul 2009
This testcase:
class test { Void test(Obj? obj) { if (obj is List) { List list := obj list.each |item| {} } } }generates this stack trace:
If I change it to:
list.each |Obj? item| {}it's okay. Also changing
List listtoObj?[] listgets rid of the error.I'm thinking either reflection ought to assume Obj?, or that be a compile error.