diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2016-03-29 16:47:47 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2016-03-29 23:08:40 -0700 |
commit | 63f017586f31de11bc6004dca7cea0c26ceb5ff5 (patch) | |
tree | a1fd4c7e1a879aeb19981d8d71f7823d0c5bfad6 /test/files/pos/bounds.scala | |
parent | 0a3362b3ea5cd7355cd9ccc529783549a4cb5c5f (diff) | |
download | scala-63f017586f31de11bc6004dca7cea0c26ceb5ff5.tar.gz scala-63f017586f31de11bc6004dca7cea0c26ceb5ff5.tar.bz2 scala-63f017586f31de11bc6004dca7cea0c26ceb5ff5.zip |
Better detection of types LMF cannot instantiate.
LambdaMetaFactory can only properly instantiate Java interfaces
(with one abstract method, of course). A trait always compiles
to an interface, but a subclass that can be instantiated may
require mixing in further members, which LMF cannot do.
(Nested traits, traits with fields,... do not qualify.)
Traits that cannot be instantiated by LMF are still SAM targets,
we simply created anonymous subclasses as before.
Diffstat (limited to 'test/files/pos/bounds.scala')
0 files changed, 0 insertions, 0 deletions