You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Type aliasing a concrete type on multiple levels does not define the type in the input field of morphir web. When a type alias; "CustomA" references a basic type "Int", the basic type is displayed in the input section of Morphir web as the type of that input parameter but when another type alias "Custom B" references Custom A, the type represented in the input section of the Morphir web is "?" and "unknown error" is displayed when any input is typed in.
To Reproduce
Steps to reproduce the behavior:
Define the following Elm model:
type alias CustomA =
Int
type alias CustomB =
CustomA
type alias Foo =
{ works : Int
, worksToo : CustomA
, bug : CustomB
}
funct1 : Foo-> Foo
funct1 foo =
foo
funct2 : CustomB -> CustomB
funct2 customB =
customB
Navigate to funt1 function in the UI and fill in the input values
Check the type annotated for works and worksToo in the Foo record on Morphir Web
Notice that it's Int
Check the type annotated for bug in the Foo record on Morphir Web
Notice that it's "?" and not Int
Notice that attempting to input a value into bug field throws "unknown error"
funct2 behaves similarly
Expected behavior
The type for the bug field in record Foo should be represented as Int because the base type is an Int
Desktop (please complete the following information):
OS: Windows
Browser: Chrome
Version : 2.86.0
The text was updated successfully, but these errors were encountered:
Describe the bug
Type aliasing a concrete type on multiple levels does not define the type in the input field of morphir web. When a type alias; "CustomA" references a basic type "Int", the basic type is displayed in the input section of Morphir web as the type of that input parameter but when another type alias "Custom B" references Custom A, the type represented in the input section of the Morphir web is "?" and "unknown error" is displayed when any input is typed in.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The type for the bug field in record Foo should be represented as Int because the base type is an Int
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: