summaryrefslogtreecommitdiff
path: root/test/files/pos/t6221.scala
Commit message (Collapse)AuthorAgeFilesLines
* Single Abstract Method support: synthesize SAMsAdriaan Moors2013-10-041-2/+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.
* SI-6221 inference with Function1 subtypes.Paul Phillips2013-06-131-0/+29
There appears to be no upper bound on the number of places we have to remove calls to typeSymbol and introduce calls to baseType. This one was type inference for function parameter types: worked when expected type was A => B, but not if there was an implicit conversion from A => B to the expected type.