Smart cast impossible on when subject is no more recorded #KT-10061 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// See KT-10061
|
||||
// FILE: My.java
|
||||
public class My {
|
||||
String getSomething() { return "xyz"; }
|
||||
}
|
||||
|
||||
// FILE: My.kt
|
||||
fun foo(my: My) {
|
||||
my.something!!
|
||||
when (my.something) { }
|
||||
}
|
||||
Reference in New Issue
Block a user