[Webkit-unassigned] [Bug 165477] New: Functions with a return type of ExceptionOr<String> cannot "return emptyString(); "
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 6 10:31:50 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=165477
Bug ID: 165477
Summary: Functions with a return type of ExceptionOr<String>
cannot "return emptyString();"
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jer.noble at apple.com
CC: lforschler at apple.com
Attempting to do so generates the following error:
error: no viable conversion from returned value of type 'const WTF::String' to function return type 'ExceptionOr<WTF::String>'
With the following notes:
ExceptionOr.h:35:37: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const WTF::String' to 'const WebCore::ExceptionOr<WTF::String> &' for 1st argument
ExceptionOr.h:37:5: note: candidate constructor not viable: no known conversion from 'const WTF::String' to 'WebCore::Exception &&' for 1st argument
ExceptionOr.h:38:5: note: candidate constructor not viable: 1st argument ('const WTF::String') would lose const qualifier
ExceptionOr.h:39:88: note: candidate template ignored: disabled by 'enable_if' [with OtherType = WTF::String]
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161206/b5b4fec0/attachment.html>
More information about the webkit-unassigned
mailing list