Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-beta-3
-
None
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("") } }