[FIR] Add VARIABLE_WITH_NO_TYPE_NO_INITIALIZER diagnostic
This commit is contained in:
committed by
teamcityserver
parent
a63f218dd3
commit
b706e776ad
Vendored
-3
@@ -1,3 +0,0 @@
|
||||
fun test() {
|
||||
val a
|
||||
}
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
fun test() {
|
||||
val <!VARIABLE_WITH_NO_TYPE_NO_INITIALIZER!>a<!>
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
//KT-2096 Abstract property with no type specified causes compiler to crash
|
||||
|
||||
package c
|
||||
|
||||
abstract class Foo{
|
||||
protected abstract val prop
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
//KT-2096 Abstract property with no type specified causes compiler to crash
|
||||
|
||||
package c
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@ class T {
|
||||
|
||||
fun foo() {
|
||||
public val i = 11
|
||||
abstract val j
|
||||
abstract val <!VARIABLE_WITH_NO_TYPE_NO_INITIALIZER!>j<!>
|
||||
override fun T.baz() = 2
|
||||
private fun bar() = 2
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user