Avatar
stderr:main.swift:10:7: warning: expression implicitly coerced from 'String?' to Any print(String.init(data: a, encoding: .utf8)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.swift:10:14: note: provide a default value to avoid this warning print(String.init(data: a, encoding: .utf8)) ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ?? <#default value#> main.swift:10:14: note: force-unwrap the value to avoid this warning print(String.init(data: a, encoding: .utf8)) ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! main.swift:10:14: note: explicitly cast to Any with 'as Any' to silence this warning print(String.init(data: a, encoding: .utf8)) ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ as Any TYPE MISMATCH IN ARGUMENT 0 OF APPLY AT expression at [<invalid loc> - <invalid loc>] argument value: %1 = argument of bb0 : $User // user: %3 parameter type: $@thin User.Type #0 0x0000000003ae91b8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/bin/swift+0x3ae91b8) #1 0x0000000003ae98f6 SignalHandler(int) (/usr/bin/swift+0x3ae98f6) #2 0x00007f92b5289390 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x11390) #3 0x00007f92b39c8428 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x35428) #4 0x00007f92b39ca02a abort (/lib/x86_64-linux-gnu/libc.so.6+0x3702a) #5 0x0000000000c648e5 swift::Lowering::SILGenFunction::emitApply(std::unique_ptr<swift::Lowering::ResultPlan, std::default_delete<swift::Lowering::ResultPlan> >&&, swift::Lowering::ArgumentScope&&, swift::SILLocation, swift::Lowering::ManagedValue, llvm::ArrayRef<swift::Substitution>, llvm::ArrayRef<swift::Lowering::ManagedValue>, swift::Lowering::CalleeTypeInfo const&, swift::Lowering::ApplyOptions, swift::Lowering::SGFContext) (/usr/bin/swift+0xc648e5) #6 0x0000000000c66f09 (anonymous namespace)::CallEmission::apply(swift::Lowering::SGFContext) (/usr/bin/swift+0xc66f09