Skip to content

Lambda<Func<int>>(Block(Label(Label(typeof(int)), Constant(7)))) is not supported #78

@dzmitry-lahoda

Description

@dzmitry-lahoda
        [Test]
        [Ignore("Fails on IsNotNull")]
        public void BlockWithConstanRetrunIsSupported()
        {
            var ret = Block(Label(Label(typeof(int)), Constant(7)));
            var lambda = Lambda<Func<int>>(ret);
            var compiled = lambda.Compile();
            var value1 = compiled();
            Assert.AreEqual(7, value1);
            var fastCompiled = lambda.CompileFast<Func<int>>(true);
            Assert.IsNotNull(fastCompiled);
        }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions