preparing for statically allocating struct instances

This commit is contained in:
Irmen de Jong
2025-05-03 18:46:21 +02:00
parent 1ba5587404
commit 4dc82f2c83
11 changed files with 44 additions and 17 deletions

View File

@@ -1433,6 +1433,9 @@ class FunctionCallExpression(override var target: IdentifierReference,
return InferredTypes.unknown() // has multiple return types... so not a single resulting datatype possible
}
is StructDecl -> {
return InferredTypes.knownFor(DataType.structInstance(stmt))
}
else -> return InferredTypes.unknown()
}
}