Generated field for classObject is now final

EA-38323 Fixed - Illegal field modifiers in class
This commit is contained in:
Natalia.Ukhorskaya
2012-09-14 16:40:38 +04:00
parent 812b9453d1
commit c5db89e534
3 changed files with 18 additions and 1 deletions
@@ -0,0 +1,12 @@
// EA-38323 - Illegal field modifiers in class: classObject field in C must be static and final
trait C {
class object {
public val FOO: String = "OK"
}
}
fun box(): String {
return C.FOO
}