sml icon indicating copy to clipboard operation
sml copied to clipboard

Dependencies can't be declared final

Open dingari opened this issue 2 years ago • 2 comments

Expected Behavior

I have an FSM that has dependencies of classes that are declared final.

Actual Behavior

The program can't be compiled because SML tries to inherit from my dependencies. This is very inconvenient, since some of my dependencies are from external frameworks that I don't control. I suppose I could wrap them in another struct, but that seems like an unnecessary inconvenience. This was not an issue with previous versions.

Steps to Reproduce the Problem

See example

Specifications

  • Version: 1.1.4
  • Platform: MSVC

dingari avatar Dec 17 '21 16:12 dingari

seems to be msvc specific?

tralamazza avatar Dec 17 '21 16:12 tralamazza

Yes, seems to be MSVC specific. Do you think it's a compiler bug? It's strange that it does not happen with Clang/GCC, since they clearly don't allow you to inherit from a final class either.

dingari avatar Jan 03 '22 14:01 dingari