Use correct function to find header for impl in IDE

Also do not call isHeader/isImpl because the returned declarations are
guaranteed to be isHeader in findCompatibleHeaderForImpl and isImpl in
findCompatibleImplForHeader
This commit is contained in:
Alexander Udalov
2017-04-18 18:51:51 +03:00
parent af4f96fb52
commit a2e050a3b9
4 changed files with 14 additions and 7 deletions
@@ -1,5 +1,5 @@
impl class <lineMarker>Header</lineMarker> {
impl fun foo() = 42
impl fun <lineMarker>foo</lineMarker>() = 42
}
impl fun <lineMarker>foo</lineMarker>(arg: Int) = arg.toString()