mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 09:03:15 +01:00
Fixed array operation codegen when used from imported templates. All array operations are now emitted with template linkage. Fixed #270 .
This commit is contained in:
@@ -275,7 +275,7 @@ Expression *BinExp::arrayOp(Scope *sc)
|
||||
//printf("ftype: %s\n", ftype->toChars());
|
||||
fd = new FuncDeclaration(0, 0, Lexer::idPool(name), STCundefined, ftype);
|
||||
fd->fbody = fbody;
|
||||
fd->protection = PROTprotected;
|
||||
fd->protection = PROTpublic;
|
||||
fd->linkage = LINKd;
|
||||
|
||||
// special attention for array ops
|
||||
|
||||
Reference in New Issue
Block a user