Fix for EA-53605 - UOE: PackageType.throwException

This commit is contained in:
Andrey Breslav
2014-05-19 11:38:53 +04:00
parent 8885d5709e
commit f72dcb8ee2
5 changed files with 27 additions and 3 deletions
@@ -0,0 +1,10 @@
object A {
class B
fun foo() = 1
object Bar{}
}
fun test<T>(a: T) {
val c = (a as A)
c.<error descr="[FUNCTION_EXPECTED] Expression 'B' of type '[Package-type B]' cannot be invoked as a function. The function invoke() is not found"><error>B</error></error>()
}
@@ -306,6 +306,11 @@ public class JetPsiCheckerTestGenerated extends AbstractJetPsiCheckerTest {
doTest("idea/testData/checker/regression/CoercionToUnit.kt");
}
@TestMetadata("createInnerInstance.kt")
public void testCreateInnerInstance() throws Exception {
doTest("idea/testData/checker/regression/createInnerInstance.kt");
}
@TestMetadata("DoubleDefine.kt")
public void testDoubleDefine() throws Exception {
doTest("idea/testData/checker/regression/DoubleDefine.kt");