From b15af315c4432e18c8075d52e9ba63116a71d660 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Fri, 4 Nov 2011 14:52:42 +0300 Subject: [PATCH] Tests for errors on literal callees --- .../quick/FunctionCalleeExpressions.jet | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/compiler/testData/checkerWithErrorTypes/quick/FunctionCalleeExpressions.jet b/compiler/testData/checkerWithErrorTypes/quick/FunctionCalleeExpressions.jet index 271e8533305..15acd8ec22c 100644 --- a/compiler/testData/checkerWithErrorTypes/quick/FunctionCalleeExpressions.jet +++ b/compiler/testData/checkerWithErrorTypes/quick/FunctionCalleeExpressions.jet @@ -70,3 +70,13 @@ fun main1(args : Array) { 1.if (true) {} } +fun test() { + {(x : Int) => 1}() + {Int.() => 1}() + "sd".{Int.() => 1}() + val i : Int? = null + i.{Int.() => 1}() + {}() + 1?.{Int.() => 1}() + 1.{}() +} \ No newline at end of file