removing static type assertions work in progress
This commit is contained in:
@@ -5,7 +5,7 @@ class A() {
|
||||
}
|
||||
|
||||
fun box(): Boolean {
|
||||
var a = null : A?
|
||||
var a: A? = null
|
||||
when(a) {
|
||||
is A? -> return true
|
||||
else -> return false
|
||||
|
||||
@@ -10,8 +10,8 @@ class B() {
|
||||
|
||||
fun box(): Boolean {
|
||||
var c: Int = 0
|
||||
var a = A() : Any?
|
||||
var b = null : Any?
|
||||
var a: Any? = A()
|
||||
var b: Any? = null
|
||||
when(a) {
|
||||
null -> c = 10;
|
||||
is B -> c = 10000
|
||||
|
||||
Reference in New Issue
Block a user