KT-3016 Exception during analyze when some function has no name

#KT-3016 Fixed
This commit is contained in:
Andrey Breslav
2012-11-19 13:36:04 +04:00
parent be7989af36
commit 636deb6a09
9 changed files with 74 additions and 21 deletions
@@ -0,0 +1,6 @@
// "Import Class" "false"
// ERROR: Unresolved reference: TTT
class {
val t: TTT = null
}
@@ -0,0 +1,6 @@
// "Import Class" "false"
// ERROR: Unresolved reference: TTTTT
fun () {
val tttt : TTTTT = null
}
@@ -0,0 +1,6 @@
// "Import Class" "false"
// ERROR: Unresolved reference: TTT
object {
val t : TTT = null
}
@@ -0,0 +1,7 @@
// "Import Class" "false"
// ERROR: Function 'f' must have a body
// ERROR: Unresolved reference: TTT
fun f(: Int) {
val t: TTT = null
}
@@ -0,0 +1,8 @@
// "Import Class" "false"
// ERROR: Unresolved reference: TTT
val : Int
get() {
val t : TTT = null
return 1
}