fix Issue 8698 - Forward reference error with interfaces
fix Issue 8697 - Invalid error message: Forward reference of interface
Merge pull request #1853 from 9rnsr/fix8698

Issue 8698 - Forward reference error with interfaces