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
module M{exportinterfaceP{x: number;y: number;}exportvara=1;}varp: M.P;// Used as ModuleNamevarm: M=M;// Used as TypeName and PrimaryExpression (error on TypeName)varm2: typeofM=M;// Used as PrimaryExpression in TypeQueryvarx1=M.a;// Used as PrimaryExpressionvarx2=m.a;// Same as M.avarq: m.P;// Error
I'm also thinking that the same logical OR should be used for the check to see whether a module is used as a value, but if that's the case then I wonder why SymbolFlags.ValueModule and SymbolFlags.NamespaceModule exist separately in the first place.
Activity
begincalendar commentedon Oct 13, 2017
I believe a solution might be:
...but it breaks a lot of other tests.
I'm also thinking that the same logical OR should be used for the check to see whether a module is used as a value, but if that's the case then I wonder whySymbolFlags.ValueModuleandSymbolFlags.NamespaceModuleexist separately in the first place.Fix #102: More accurate error message for module in type reference (#…
mhegazy commentedon Oct 30, 2017
thanks Matt (@begincalendar)!