added info about smart casts to diagnostic tests
This commit is contained in:
@@ -5,6 +5,6 @@ trait MutableMap<K, V>: Map<K, V> {
|
||||
|
||||
fun p(p: Map<String, Int>) {
|
||||
if (p is MutableMap<String, Int>) {
|
||||
p[""] = 1
|
||||
<!DEBUG_INFO_AUTOCAST!>p<!>[""] = 1
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// !DIAGNOSTICS: -DEBUG_INFO_AUTOCAST
|
||||
trait Either<out A, out B>
|
||||
trait Left<out A>: Either<A, Nothing> {
|
||||
val value: A
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// !DIAGNOSTICS: -DEBUG_INFO_AUTOCAST
|
||||
trait Either<out A, out B>
|
||||
trait Left<out A>: Either<A, Nothing> {
|
||||
val value: A
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// !DIAGNOSTICS: -DEBUG_INFO_AUTOCAST
|
||||
trait Either<out A, out B>
|
||||
trait Left<out A>: Either<A, Nothing> {
|
||||
val value: A
|
||||
|
||||
Reference in New Issue
Block a user