Parser assumes attributes do not appear in a function

IDE: Visual Studio X/Fire
Version: (develop)
Target (If relevant): OSX
The parser fails to parse an attribute within a function.
This could occur for a nested function or type with an attribute.

Expected Behavior:
Compiles or non-parser error.
Actual Behavior:
“E: closing bracket expected, got attribute [<file> (<line>)]”

func foo() { // Error Here
  func bar() {}

Thanks, logged as bugs://82752

bugs://82752 got closed with status fixed.