Resolution: Resolve primary constructor references to primary constructor

itself if it's explicitly present in PSI
This commit is contained in:
Alexey Sedunov
2015-06-04 16:26:47 +03:00
parent b049455aa4
commit 608ce59f15
15 changed files with 36 additions and 23 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
~A~class A {
~B~class B() {
~B()~constructor(i: Int) {}
~B~class B~B()~() {
~B(int)~constructor(i: Int) {}
}
~foo~fun foo(~foo.a~a : `kotlin::Char`Char) = `foo.a`a`:kotlin::Char`
~fooB~fun fooB() = `foo`foo('1')`:kotlin::Char`
~foo.1~fun foo() : Int = (1.`kotlin::Int.plus(Int)`plus(1))`:kotlin::Int`
~foo91~fun foo1() : `B`B = `B`B()`:B`
~foo91~fun foo1() : `B`B = `B()`B()`:B`
~A.a~val a : `kotlin::Int`Int
}