Przeglądaj źródła

Revert change on ParsedConstructor

I don't think this is the correct call here.
Just that a constructor has no argument does not mean it is a propagated default constructor.
kindlich 5 lat temu
rodzic
commit
7b39160a6c
Nie znaleziono w bazie danych klucza dla tego podpisu

+ 1
- 2
Parser/src/main/java/org/openzen/zenscript/parser/member/ParsedConstructor.java Wyświetl plik

@@ -14,7 +14,6 @@ import org.openzen.zenscript.codemodel.member.ConstructorMember;
14 14
 import org.openzen.zenscript.codemodel.member.FunctionalMember;
15 15
 import org.openzen.zenscript.codemodel.scope.TypeScope;
16 16
 import org.openzen.zenscript.codemodel.type.StoredType;
17
-import org.openzen.zenscript.codemodel.type.member.BuiltinID;
18 17
 import org.openzen.zenscript.parser.ParsedAnnotation;
19 18
 import org.openzen.zenscript.parser.definitions.ParsedFunctionHeader;
20 19
 import org.openzen.zenscript.parser.statements.ParsedFunctionBody;
@@ -35,7 +34,7 @@ public class ParsedConstructor extends ParsedFunctionalMember {
35 34
 
36 35
 	@Override
37 36
 	public void linkTypes(TypeResolutionContext context) {
38
-        compiled = new ConstructorMember(position, definition, modifiers, header.compile(context), header.parameters.isEmpty() ? BuiltinID.CLASS_DEFAULT_CONSTRUCTOR : null);
37
+		compiled = new ConstructorMember(position, definition, modifiers, header.compile(context), null);
39 38
 	}
40 39
 
41 40
 	@Override

Ładowanie…
Anuluj
Zapisz