Add a trait to indicate if a function is override

Bugzilla: http://d.puremagic.com/issues/show_bug.cgi?id=10700

Fix issue 10700