Details
-
Type:
Bug
-
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
-
Patch Submitted:Yes
-
Number of attachments :
Description
STC allows assign an array to any type which is not an array
import groovy.transform.* @TypeChecked class Foo { def say() { FooAnother foo1 = new Foo[13] // but FooAnother[] foo1 = new Foo() reports a STC Error } } class FooAnother { }