D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6861 - Implicitly convert expression. const(immutable(char)[][string][string]) to const(string[string][string])
Summary: Implicitly convert expression. const(immutable(char)[][string][string]) to co...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 All
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2011-10-28 09:19 UTC by Takuya Kurosawa
Modified: 2012-05-01 23:33 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Takuya Kurosawa 2011-10-28 09:19:25 UTC
Code
----
class Homu
{
	const
	const(string[string][string]) homuhomu()
	{
		return homuhomu_;
	}

private:
	string[string][string] homuhomu_;
}
----

Compile error(dmd 2.056)
----
Error: forward reference to type const(string)
Error: cannot implicitly convert expression (this.homuhomu_) of type
const(immutable(char)[][string][string]) to const(string[string][string])
----
Comment 1 SomeDude 2012-05-01 15:48:27 UTC
This one compiles and runs fine with 2.059
Comment 2 Kenji Hara 2012-05-01 23:33:22 UTC
Was fixed by https://github.com/D-Programming-Language/dmd/pull/430 .