Merge pull request #9563 from ethereum/constrInLib

Fix member lookup for constructor in library.
This commit is contained in:
chriseth
2020-08-05 19:07:28 +02:00
committed by GitHub
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).