frontend bugs fixed:

fun f(): Int = "s" //was ok
  fun g(): Int { if (1 < 2) {} else {} }//was ok
  fun h(): Int { val a = 1 } //was ok
This commit is contained in:
svtk
2011-08-05 17:43:32 +04:00
parent 7b27ac1766
commit 671b8913ed
7 changed files with 47 additions and 14 deletions
+1 -1
View File
@@ -1,8 +1,8 @@
namespace jet121 {
fun box() : String {
val answer = apply("OK") { String.() : Int =>
length
get(0)
length
}
return if (answer == 2) "OK" else "FAIL"
+1 -1
View File
@@ -17,6 +17,6 @@ enum class Foo<T> {
fun box(): String {
fun box() {
val x: ProtocolState = ProtocolState.WAITING
}