From 22f4caa78d51f105b63e34cd2452b9324d31b924 Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Mon, 12 Jan 2015 21:33:48 +0300 Subject: [PATCH] Fixed test for KT-6530 Do not report "useless cast" when RHS is unresolved --- compiler/testData/diagnostics/tests/Casts.kt | 2 -- compiler/testData/diagnostics/tests/cast/bare/ToErrorType.kt | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/testData/diagnostics/tests/Casts.kt b/compiler/testData/diagnostics/tests/Casts.kt index ce582bc9006..3811dfe4cfa 100644 --- a/compiler/testData/diagnostics/tests/Casts.kt +++ b/compiler/testData/diagnostics/tests/Casts.kt @@ -13,6 +13,4 @@ fun test() : Unit { x as? Int? : Int? y as? Int? : Int? Unit - - x as UnresolvedType } diff --git a/compiler/testData/diagnostics/tests/cast/bare/ToErrorType.kt b/compiler/testData/diagnostics/tests/cast/bare/ToErrorType.kt index e4ce74bd120..84bd38b1368 100644 --- a/compiler/testData/diagnostics/tests/cast/bare/ToErrorType.kt +++ b/compiler/testData/diagnostics/tests/cast/bare/ToErrorType.kt @@ -1,6 +1,6 @@ class P fun foo(p: P): Any { - val v = p as G + val v = p as G return v } \ No newline at end of file