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
The following error message is generated from this code sample
typePerson{Name:string;Age:int;City:string}
error FS0010: Unexpected symbol '{' in type definition. Expected '(' or other token.
Why
The error message suggests to the user that they should put a ( in to fix the problem (or some other unspecified token), when in fact they have missed the = operator. Many other languages allow you to define types without the = sign, so this is not an uncommon issue.
How
Rewrite the above error to something like error FS0010: Unexpected symbol '{' in type definition. Did you forget to use the = operator e.g. "type Person = { Name ..." .
The text was updated successfully, but these errors were encountered:
What
The following error message is generated from this code sample
error FS0010: Unexpected symbol '{' in type definition. Expected '(' or other token.
Why
The error message suggests to the user that they should put a ( in to fix the problem (or some other unspecified token), when in fact they have missed the = operator. Many other languages allow you to define types without the = sign, so this is not an uncommon issue.
How
Rewrite the above error to something like
error FS0010: Unexpected symbol '{' in type definition. Did you forget to use the = operator e.g. "type Person = { Name ..." .
The text was updated successfully, but these errors were encountered: