diff options
Diffstat (limited to 'sources/scalac/ast/TreeGen.java')
-rw-r--r-- | sources/scalac/ast/TreeGen.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/ast/TreeGen.java b/sources/scalac/ast/TreeGen.java index 1c49620c0f..f9c4e9399d 100644 --- a/sources/scalac/ast/TreeGen.java +++ b/sources/scalac/ast/TreeGen.java @@ -1165,7 +1165,7 @@ public class TreeGen implements Kinds, Modifiers, TypeTags { argtypes[i] = params[i].type(); } Type[] parentTypes = { - definitions.OBJECT_TYPE(), + definitions.ANYREF_TYPE(), definitions.FUNCTION_TYPE(argtypes, restype) }; ClassSymbol clazz = new ClassSymbol( pos, Names.ANON_CLASS_NAME.toTypeName(), owner, 0); @@ -1196,7 +1196,7 @@ public class TreeGen implements Kinds, Modifiers, TypeTags { ClassSymbol clazz = new ClassSymbol( pos, Names.ANON_CLASS_NAME.toTypeName(), owner, 0); Type[] parentTypes = { - definitions.OBJECT_TYPE(), + definitions.ANYREF_TYPE(), definitions.PARTIALFUNCTION_TYPE(pattype, restype)}; clazz.setInfo(Type.compoundType(parentTypes, new Scope(), clazz)); clazz.allConstructors().setInfo( |