GithubHelp home page GithubHelp logo

linyxus / dotty Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotty-staging/dotty

0.0 1.0 0.0 158.37 MB

Research platform for new language concepts and compiler technologies for Scala.

License: Apache License 2.0

Scala 97.44% Shell 0.13% Java 1.27% CSS 0.25% JavaScript 0.84% TypeScript 0.05% Batchfile 0.01% HTML 0.01%

dotty's Introduction

Dotty

Dotty CI Join the chat at https://discord.com/invite/scala

Try it out

To try it in your project see also the Getting Started User Guide.

Building a Local Distribution

  1. sbt dist/packArchive
  2. Find the newly-built distributions in dist/target/

Code of Conduct

Dotty uses the Scala Code of Conduct for all communication and discussion. This includes both GitHub, Discord and other more direct lines of communication such as email.

How to Contribute

License

Dotty is licensed under the Apache License Version 2.0

dotty's People

Contributors

odersky avatar nicolasstucki avatar smarter avatar liufengyun avatar darkdimius avatar felixmulder avatar anatoliykmetyuk avatar allanrenucci avatar bishabosha avatar olivierblanvillain avatar abgruszecki avatar duhemm avatar romanowski avatar sjrd avatar pikinier20 avatar blaisorblade avatar barkingbad avatar biboudis avatar dwijnand avatar bryanabate avatar milessabin avatar robstoll avatar kacperfkorban avatar noti0na1 avatar theelectronwill avatar griggt avatar philwalk avatar tanishiking avatar kordyjan avatar brunnerant avatar

Watchers

James Cloos avatar

dotty's Issues

Structural GADT crashes the compiler

Minimized code

trait Expr { type T }
trait IntLit extends Expr { type T <: Int }
trait IntExpr extends Expr { type T = Int }

def foo[A](e: Expr { type T = A }) = e match {
  case _: IntLit =>
    val a: A = 0 // error
    val i: Int = ??? : A

  case _: Expr { type T <: Int } =>
    val a: A = 0 // error
    val i: Int = ??? : A // limitation // error

  case _: IntExpr =>
    val a: A = 0
    val i: Int = ??? : A

  case _: Expr { type T = Int } =>
    val a: A = 0
    val i: Int = ??? : A
}

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.