Avatar
Avatar
nanasi
@swift-5.6.3 @swift-main import Foundation @propertyWrapper struct Wrapper<Value> { var wrappedValue: Value var projectedValue: Self { get { self } set { self = newValue } } init(wrappedValue: Value) { self.wrappedValue = wrappedValue } init(projectedValue: Self) { self = projectedValue } } struct Foo { init(@Wrapper val: Int) {} } func call() { @Wrapper var val = 10 Foo($val: _val) } call() (edited)
swiftNightly BOT 8/29/2022 7:44 AM
exit status: 134 with stderr:swift-frontend: /home/build-user/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:256: const T &llvm::ArrayRef<swift::AppliedPropertyWrapper>::operator[](size_t) const [T = swift::AppliedPropertyWrapper]: Assertion `Index < Length && "Invalid index!"' failed. Stack dump: 0. Program arguments: /usr/bin/swift-frontend -frontend -interpret - -disable-objc-interop -new-driver-path /usr/bin/swift-driver -empty-abi-descriptor -resource-dir /usr/lib/swift -module-name main 1. Swift version 5.8-dev (LLVM f6b60d5b8f4b443, Swift ecccce61139bbc4) 2. Compiling with the current language version 3. While evaluating request TypeCheckSourceFileRequest(source_file "<stdin>") 4. While evaluating request TypeCheckFunctionBodyRequest(main.(file).call()@<stdin>:22:6) 5. While type-checking statement at [<stdin>:22:13 - line:25:1] RangeText="{ @Wrapper var val = 10 Foo($val: _val) " 6. While type-checking expression at [<stdin>:24:5 - line:24:19] RangeText="Foo($val: _val" 7. While type-checking-target starting at <stdin>:24:5 Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): /usr/bin/swift-frontend[0x66fdb63] /usr/bin/swift-frontend[0x66fb89e] /usr/bin/swift-frontend[0x66fdeef] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7fc65d4b3420] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7fc65c92500b] /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7fc65c904859] /lib/x86_64-linux-gnu/libc.so.6(+0x22729)[0x7fc65c904729] /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7fc65c915fd6] /usr/bin/swift-frontend[0x17279a0] /usr/bin/swift-frontend[0x172f367] /usr/bin/swift-frontend[0x172fe15] /usr/bin/swift-frontend[0x1734eb7] /usr/bin/swift-frontend[0x171a733] /usr/bin/swift-frontend[0x1bef4e6] /usr/bin/swift-frontend[0x17125a1] /usr/bin/swift-frontend[0x1711ee2] /usr/bin/swift-frontend[0x15e0e0a] /usr/bin/swift-frontend[0x15e0c4d] /usr/bin/swift-frontend[0x15e0b2d] (edited)