www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - double alias -> need 'this' to access member

# class Check{
#     void sum(byte[] b){
#     }
#
#     void add(byte b){
#     }
#
#     alias sum write;
#     alias add write;
#
#     void test(){
#         byte[] buffer;
#         write(buffer);
#     }
# }

 need 'this' to access member sum
removing "alias add write" resloves the error message test cases: http://dstress.kuehne.cn/run/alias_13.d http://dstress.kuehne.cn/run/alias_14.d Thomas
Jan 22 2005