summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/ambiguous-member-base/user.slang
blob: 3aa212807bdf0789e73a33b1d4438fffceed1203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
import lib;

static X x;

void test()
{
    // CHECK: ([[# @LINE+1]]):{{.*}}ambiguous reference to 'x'
    x.m = 2;
    // CHECK: ([[# @LINE+1]]):{{.*}}ambiguous reference to 'x'
    x[3] = 2;
    // CHECK: ([[# @LINE+1]]):{{.*}}ambiguous reference to 'x'
    x();
}