JET-6 Perform checks for primary and secondary constructors (In progress): class having a stateful property must have a constructor
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class <error>X</error> {
|
||||
val x : Int
|
||||
}
|
||||
|
||||
class Y() {
|
||||
val x : Int
|
||||
}
|
||||
|
||||
class Y1 {
|
||||
val x : Int get() = 1
|
||||
}
|
||||
|
||||
class Z : Y<error>()</error> {
|
||||
}
|
||||
Reference in New Issue
Block a user