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
@Waldemar: on scoping, are types available in a flat namespace? For example:
functiona(){classB{foo(){console.log("bar");}};varb=newB();b.foo();}classB{}varc:B=newB();// NOTE(waldemar): which B does c refer to from a type-checking perspective?// NOTE(goto, dimvar): types follows the interpreter scoping rules. For example, // the typechecker complains on the following line that "property foo()" does not// exist on type "B".c.foo();// Error
The text was updated successfully, but these errors were encountered:
(porting @Waldemar's comments into github issues)
@Waldemar: on scoping, are types available in a flat namespace? For example:
The text was updated successfully, but these errors were encountered: