Adding ref var futures that cause compiler internal error.
Merge pull request #243 from sungeunchoi/cast-enum-in-fn-future

Adding ref var futures that cause compiler internal error.