mirror of
https://github.com/irmen/prog8.git
synced 2025-11-23 14:17:51 +00:00
preparing for statically allocating struct instances
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user