From 71ad871488333a5c54d4774daea97eb46bf5afe0 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Mon, 2 Nov 2015 17:56:31 +0300 Subject: [PATCH] More precise diagnostics of smart cast impossible #KT-7240 Fixed Original commit: 41ebfd025e6cc02cc5559b1a79d6335dd3831cb7 --- .../incremental/pureKotlin/valAddCustomAccessor/build.log | 2 +- .../incremental/pureKotlin/valRemoveCustomAccessor/build.log | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jps/jps-plugin/testData/incremental/pureKotlin/valAddCustomAccessor/build.log b/jps/jps-plugin/testData/incremental/pureKotlin/valAddCustomAccessor/build.log index 19a6d813836..0390b000838 100644 --- a/jps/jps-plugin/testData/incremental/pureKotlin/valAddCustomAccessor/build.log +++ b/jps/jps-plugin/testData/incremental/pureKotlin/valAddCustomAccessor/build.log @@ -12,4 +12,4 @@ Compiling files: src/usage.kt End of files COMPILATION FAILED -Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type kotlin.Int? \ No newline at end of file +Smart cast to 'kotlin.Int' is impossible, because 'a.x' is a member value that has open or custom getter \ No newline at end of file diff --git a/jps/jps-plugin/testData/incremental/pureKotlin/valRemoveCustomAccessor/build.log b/jps/jps-plugin/testData/incremental/pureKotlin/valRemoveCustomAccessor/build.log index 3eb9b489054..d998319baf2 100644 --- a/jps/jps-plugin/testData/incremental/pureKotlin/valRemoveCustomAccessor/build.log +++ b/jps/jps-plugin/testData/incremental/pureKotlin/valRemoveCustomAccessor/build.log @@ -6,7 +6,7 @@ Compiling files: src/usage.kt End of files COMPILATION FAILED -Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type kotlin.Int? +Smart cast to 'kotlin.Int' is impossible, because 'a.x' is a member value that has open or custom getter Cleaning output files: