From 67062db57c1abef88e0049dac5d82d4f13375a48 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Thu, 3 Oct 2013 23:02:27 -0700 Subject: Single Abstract Method support: synthesize SAMs Under `-Xexperimental`, `typedFunction` invokes `synthesizeSAMFunction` when the expected type for the function literal (`pt`) is not the built-in `FunctionN` type of the expected arity, but `pt` does have a SAM with the expected number of arguments. PS: We'll require `import language.sam` instead of `-Xexperimental`, as soon as the SIP is ready and there are more tests. --- test/files/pos/sammy_twice.flags | 1 + 1 file changed, 1 insertion(+) create mode 100644 test/files/pos/sammy_twice.flags (limited to 'test/files/pos/sammy_twice.flags') diff --git a/test/files/pos/sammy_twice.flags b/test/files/pos/sammy_twice.flags new file mode 100644 index 0000000000..48fd867160 --- /dev/null +++ b/test/files/pos/sammy_twice.flags @@ -0,0 +1 @@ +-Xexperimental -- cgit v1.2.3