mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-06 01:52:04 +00:00
Make sure that contextual type arguments are passed when resolving the target of a new
expression; Fix decoding of UTF8 strings with more than two code units in the Binaryen interface
This commit is contained in:
@ -5847,7 +5847,7 @@ export class Compiler extends DiagnosticEmitter {
|
||||
var classPrototype = <ClassPrototype>target;
|
||||
var classInstance = classPrototype.resolveUsingTypeArguments( // reports
|
||||
expression.typeArguments,
|
||||
null,
|
||||
currentFunction.flow.contextualTypeArguments,
|
||||
expression
|
||||
);
|
||||
if (!classInstance) return module.createUnreachable();
|
||||
|
Reference in New Issue
Block a user