Added tests for choosing 'most specific' resolution candidate

Fixed test (while resolve with library on android): 'run' resolves to library function
This commit is contained in:
Svetlana Isakova
2014-07-10 19:00:40 +04:00
parent eca2c7beea
commit fb4c256d08
6 changed files with 78 additions and 3 deletions
@@ -1,11 +1,11 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
<!NO_TAIL_CALLS_FOUND!>tailRecursive fun foo()<!> {
run {
bar {
<!NON_TAIL_RECURSIVE_CALL!>foo<!>()
}
}
fun run(a: Any) {}
fun bar(a: Any) {}
fun box(): String {
foo()