Calling a task inside a function using fork join_none

In reply to Lakshman4178:

The code compiles and displays what it’s supported to within the Cadence compiler:
*ncsim> run
0 outside 5
10 this is task
ncsim: W,RNQUIE: Simulation is complete.
ncsim> exit

Which compiler do you use?