Browse Source

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 years ago
parent
commit
7b39160a6c
No known key found for this signature in database

+ 1
- 2
Parser/src/main/java/org/openzen/zenscript/parser/member/ParsedConstructor.java View File

14
 import org.openzen.zenscript.codemodel.member.FunctionalMember;
14
 import org.openzen.zenscript.codemodel.member.FunctionalMember;
15
 import org.openzen.zenscript.codemodel.scope.TypeScope;
15
 import org.openzen.zenscript.codemodel.scope.TypeScope;
16
 import org.openzen.zenscript.codemodel.type.StoredType;
16
 import org.openzen.zenscript.codemodel.type.StoredType;
17
-import org.openzen.zenscript.codemodel.type.member.BuiltinID;
18
 import org.openzen.zenscript.parser.ParsedAnnotation;
17
 import org.openzen.zenscript.parser.ParsedAnnotation;
19
 import org.openzen.zenscript.parser.definitions.ParsedFunctionHeader;
18
 import org.openzen.zenscript.parser.definitions.ParsedFunctionHeader;
20
 import org.openzen.zenscript.parser.statements.ParsedFunctionBody;
19
 import org.openzen.zenscript.parser.statements.ParsedFunctionBody;
35
 
34
 
36
 	@Override
35
 	@Override
37
 	public void linkTypes(TypeResolutionContext context) {
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
 	@Override
40
 	@Override

Loading…
Cancel
Save