Created attachment 1343
example file
When using nested pointers, DMD seems to not be able to realize immutable is
also constant. It'll result in errors similar to:
"function app.test2 (const(char)** test2) is not callable using argument types
(immutable(char)**)"
Comment #1 by andrej.mitrovich — 2014-04-08T14:24:15Z
Oh I see what you meant now. But when changing a pointer you should only allow it to point at what its type tells it to, a constant character in this case! That on its own is a bug.
Comment #4 by jbinero — 2014-04-08T14:39:44Z
I see now, the poiter pointing to an immutable type can be changed to point to a const (mutable) type.
*** This issue has been marked as a duplicate of issue 4251 ***
Comment #5 by k.hara.pg — 2014-04-08T19:43:21Z
This is an invalid issue, because of the issue 4251.