Skip to content

Commit

Permalink
refactor OMFOBJ
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Apr 20, 2012
1 parent d41f621 commit acdb5ac
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/runnable/structlit.d
Expand Up @@ -482,20 +482,20 @@ void test5889()
/********************************************/
// 7929

void test7929()
{
static struct S
{
int [] numbers;
}

const int [] numbers = new int[2];
void test7929()
{
static struct S
{
int [] numbers;
}

const int [] numbers = new int[2];
const S si = {numbers};
// Error: cannot implicitly convert expression (numbers) of type const(int[]) to int[]

const S se = const(S)(numbers);
// OK
}
// OK
}

/********************************************/

Expand Down

0 comments on commit acdb5ac

Please sign in to comment.