Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-3
-
Fix Version/s: 2.0-rc-1
-
Component/s: Static Type Checker
-
Labels:None
-
Number of attachments :
Description
The following classes should fail to compile:
@TypeChecked
class StaticGroovy1 {
Date foo = ""
}
@TypeChecked
class StaticGroovy2 {
Closure<List> cls = { Date aDate -> aDate.getTime() }
}
@TypeChecked
class StaticGroovy3 {
static Closure<Long> cls = { Date aDate -> aDate.getTime() }
def bar() {
cls("")
}
}