Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-1
-
Fix Version/s: 2.0-beta-2
-
Component/s: Static Type Checker
-
Labels:None
-
Number of attachments :
Description
The following code should compile properly with static type checking activated:
class A {
String name
}
List<A> myList = [new A(name:'Cedric'), new A(name:'Yakari')] as LinkedList<A>
for (element in myList) {
element.name.toUpperCase()
}