Bug 9241 – 2.061: Property call error message disappeared

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-12-29T10:21:00Z
Last change time
2013-04-23T02:18:59Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2012-12-29T10:21:34Z
As a result of fixing Issue 8894 I've introduced a new problem: import std.string; void main() { string s; s = s.splitLines; } 2.060: test.d(8): Error: not a property s.splitLines 2.061: Error: no property 'splitLines' for type 'string' The error message before is more informative because it shows you that the UFCS function must be called with parentheses. Issue 8894 was fixed with a band-aid by using gagging (on top of existing gagging), but we're ultimately going to have to rewrite the lookup system in D to not use gagging at all.
Comment #1 by yebblies — 2013-01-14T03:35:27Z
I get: DMD v2.062 DEBUG testx.d(6): Error: cannot implicitly convert expression (splitLines(s, cast(Keep Terminator)false)) of type string[] to string Fixed?
Comment #2 by andrej.mitrovich — 2013-01-14T07:39:20Z
(In reply to comment #1) > I get: > > DMD v2.062 DEBUG > testx.d(6): Error: cannot implicitly convert expression (splitLines(s, > cast(Keep > Terminator)false)) of type string[] to string > > Fixed? I forgot to mention -property is required.
Comment #3 by k.hara.pg — 2013-04-19T03:37:33Z
Comment #4 by github-bugzilla — 2013-04-22T23:55:51Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/918656c57d198a00859b02608f9d187dddd9213f fix Issue 9241 - 2.061: Property call error message disappeared