Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Single Abstract Method support: java8 test | Adriaan Moors | 2013-10-08 | 1 | -0/+1 |
| | | | | | | | | | | | Inspired by test/files/run/t7398.scala and sammy_poly. Added some notes to original tests. Elaborating on that note: we don't yet desugar `f(a)` to `f.sam(a)`, like we do for regular functions: `f(a)` becomes `f.apply(a)`. It seems pleasingly symmetrical and is easy to implement, but not sure it's a good idea... | ||||
* | Single Abstract Method support: synthesize SAMs | Adriaan Moors | 2013-10-04 | 1 | -0/+6 |
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. |