Bug 2754 – The error message regarding implicit conversion to shared doesn't mention shared in the message.

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-03-21T22:10:00Z
Last change time
2015-06-09T01:20:50Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
sandford

Comments

Comment #0 by sandford — 2009-03-21T22:10:36Z
Error: cannot implicitly convert expression (new A) of type hello.A to A v.s. the corresponding immutable error: Error: cannot implicitly convert expression (new A) of type hello.A to immutable(A) Test case: class A {} void foo( shared A y ) {} void main() { foo(new A()); } P.S. D 2.026 isn't available yet as an option in bugzilla.
Comment #1 by bugzilla — 2009-04-01T13:57:12Z
Fixed DMD 2.027