Fix member lookup for constructor in library.

This commit is contained in:
chriseth
2020-08-04 10:51:40 +02:00
parent d31f05fcc0
commit c96e997a3c
4 changed files with 9 additions and 1 deletions
@@ -0,0 +1,4 @@
library L{ constructor() { L.x; } }
// ----
// TypeError 7634: (11-33): Constructor cannot be defined in libraries.
// TypeError 9582: (27-30): Member "x" not found or not visible after argument-dependent lookup in type(library L).