Specify Type Explicitly: Filter out types which can't be resolved in the target scope

#KT-10066 Fixed
This commit is contained in:
Alexey Sedunov
2015-12-24 14:51:44 +03:00
committed by Alexey
parent 21fd894d75
commit 00cc9d4150
8 changed files with 65 additions and 16 deletions
@@ -0,0 +1,3 @@
class A {
private fun foo() <caret>= { object {} }
}
@@ -0,0 +1,3 @@
class A {
private fun foo(): () -> Any<caret> = { object {} }
}
@@ -0,0 +1,6 @@
class A {
private fun bar() <caret>= {
class Local()
Local()
}
}
@@ -0,0 +1,6 @@
class A {
private fun bar(): () -> Any<caret> = {
class Local()
Local()
}
}