[dmd 2.066] Is scope with nothrow regression?

NCrashed via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 6 05:31:40 PDT 2014


```
void bar()
{
	throw new Exception("");
}

void foo() nothrow
{
	scope(failure) {}
	bar();
}

void main() {}
```
Doesn't compile with 2.066:
```
source/app.d(9): Error: 'app.bar' is not nothrow
source/app.d(6): Error: function 'app.foo' is nothrow yet may 
throw
```


More information about the Digitalmars-d-learn mailing list