Coder Social home page Coder Social logo

Comments (6)

lrhn avatar lrhn commented on May 26, 2024 1

Yes. A record type is not a callable type since it doesn't have a call method.
Having a call getter doesn't apply, same as for any other type.

(It can accept an extension call method like any other type, if it doesn't have a member base-named call.)

from sdk.

lrhn avatar lrhn commented on May 26, 2024

Just read #54351 where it's mentioned that we don't want call getters on records to be callable.

from sdk.

johnniwinther avatar johnniwinther commented on May 26, 2024

@chloestefantsova Can you take a look at this for the CFE? (I don't think this is done in shared code)

from sdk.

chloestefantsova avatar chloestefantsova commented on May 26, 2024

@chloestefantsova Can you take a look at this for the CFE? (I don't think this is done in shared code)

Sure! Will do.

from sdk.

lrhn avatar lrhn commented on May 26, 2024

Since this is (probably) not shared code, I split it into an analyzer issue (#54651), and made this issue CFE-specific.

from sdk.

chloestefantsova avatar chloestefantsova commented on May 26, 2024

Both c(1) and c2(1) should be compile-time errors

Am I right to assume the calls to c(3) should be compile-time errors as well?

from sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.