blob: 242119e71db0411ec1bb154f689292d1f31d07ac [file] [log] [blame]
/*
REQUIRED_ARGS: -de
---
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;
}