Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Additional SAM restrictions identified by Jason | Adriaan Moors | 2016-03-26 | 1 | -2/+2 |
| | | | | | Also test roundtripping serialization of a lambda that targets a SAM that's not FunctionN (it should make no difference). | ||||
* | Single Abstract Method support: synthesize SAMs | Adriaan Moors | 2013-10-04 | 1 | -0/+8 |
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. |