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.