1 2 3 4 5 6 7 8 9 10
contract C { string constant x = "abc"; function f() public pure { assembly { let a := x } } } // ---- // TypeError 7615: (115-116): Only direct number constants and references to such constants are supported by inline assembly.