fix the the type of GET field of struct

This commit is contained in:
Volker Berlin 2020-01-01 22:58:13 +01:00
parent 515123d4e1
commit 6285aee077

View File

@ -1,5 +1,5 @@
/*
Copyright 2018 - 2019 Volker Berlin (i-net software)
Copyright 2018 - 2020 Volker Berlin (i-net software)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -194,8 +194,9 @@ class WasmStructInstruction extends WasmInstruction {
return ValueType.anyref;
case NEW:
case NEW_DEFAULT:
case GET:
return type;
case GET:
return fieldName.getType();
case SET:
return null;
default: