blob: 020d807d8b8773360a4ff106ead44e9ef40af2e3 [file] [log] [blame]
/*
REQUIRED_ARGS: -de
TEST_OUTPUT:
---
fail_compilation/test11176.d(12): Deprecation: b.ptr cannot be used in @safe code, use &b[0] instead
fail_compilation/test11176.d(16): Deprecation: b.ptr cannot be used in @safe code, use &b[0] instead
---
*/
// https://issues.dlang.org/show_bug.cgi?id=11176
@safe ubyte oops(ubyte[] b) {
return *b.ptr;
}
@safe ubyte oops(ubyte[3] b) {
return *b.ptr;
}