summaryrefslogtreecommitdiff
path: root/test/files/neg/sammy_restrictions.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/sammy_restrictions.scala')
-rw-r--r--test/files/neg/sammy_restrictions.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/sammy_restrictions.scala b/test/files/neg/sammy_restrictions.scala
index d003cfaf36..101342ad0b 100644
--- a/test/files/neg/sammy_restrictions.scala
+++ b/test/files/neg/sammy_restrictions.scala
@@ -31,7 +31,7 @@ object Test {
(() => 0) : NoAbstract
((x: Int) => 0): TwoAbstract
((x: Int) => 0): DerivedOneAbstract // okay
- ((x: Int) => 0): NonClassType // "class type required". I think we should avoid SAM translation here.
+ ((x: Int) => 0): NonClassType // okay -- we also allow type aliases in instantiation expressions, if they resolve to a class type
((x: Int) => 0): NoEmptyConstructor
((x: Int) => 0): OneEmptyConstructor // okay
((x: Int) => 0): OneEmptySecondaryConstructor // derived class must have an empty *primary* to call.