changeset 1353:2bd75a859716

[Issue 828] expression.c:1904: virtual Expression* ThisExp::semantic(Scope*): Assertion `global.errors || var' failed. Alexander Panek <a.panek@brainsware.org> 20007-01-01 http://d.puremagic.com/issues/show_bug.cgi?id=828
author thomask
date Fri, 23 Feb 2007 22:32:19 +0000
parents 69d5079a38aa
children aedfc4673dbd
files nocompile/b/bug_expression_1904_A.d reporter.txt
diffstat 2 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/b/bug_expression_1904_A.d	Fri Feb 23 22:32:19 2007 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Alexander Panek <a.panek@brainsware.org>
+// @date@	2007-01-01
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=828
+// @desc@	[Issue 828] expression.c:1904: virtual Expression* ThisExp::semantic(Scope*): Assertion `global.errors || var' failed.
+
+module dstress.nocompile.b.bug_expression_1904_A;
+
+class A{
+	void func(){
+		Object o = cast(typeof(this.classinfo))null;
+	}
+}
+
+void main(){
+	A = new A;
+	A.func();
+}
--- a/reporter.txt	Wed Feb 14 10:12:05 2007 +0000
+++ b/reporter.txt	Fri Feb 23 22:32:19 2007 +0000
@@ -6,6 +6,7 @@
 Alberto Simon		<lugaidster@gmail.com>
 Aleksey Bobnev		<uw@front.ru>
 Alex			<CppCoder@gmail.com>
+Alexander Panek		<a.panek@brainsware.org>
 Anders F Björklun	<afb@algonet.se>
 Anders Runesson		<anders@runesson.info>
 Andrew Fedoniouk	<news@terrainformatica.com>