view run/inline_06.d @ 1330:f3f715978184

Georg Wrede <georg@iki.fi> 2007-01-07 mail:45A120F5.1050108@iki.fi
author thomask
date Sat, 13 Jan 2007 10:33:49 +0000
parents 1e6afb94ce6d
children 52c9e86b6486
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Ilya Zaitseff <sark7@mail333.com>
// @date@	2005-02-14
// @uri@	news:opsl6xtajtaaezs2@robingood
// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/2984

module dstress.run.inline_06;

struct MyStruct{

	int[] x;

	int foo() {
		return 3;
	}

	MyStruct bar(){
		MyStruct v;
		return v;
	}
	
	float bug(MyStruct p1) {
		return bar.foo;
	}
}

int main(){
	MyStruct s;
	assert(s.bug(s)==3);
	return 0;
}