At the moment we are porting one of our products from Dynamics NAV 2009 R2 (Classic Client) to NAV 2013 R2. We have thousands of unit tests and most of them work out of the box.
But now my colleague Matthias Schäfer found a very strange issue. Consider this snippet:
On Dynamics NAV 2009 R2 Classic client (Build 6.00.33494) we get the same message twice:
But on Dynamics NAV 2013 R2 (Build 7.10.36281) we get:
Weird, isn’t it?
Update 1
This is what the Dynamics NAV compiler is emitting:
We assume this is what the Dynamics NAV compiler should do: