Skip to content

Splitting linear * read without jailing type checks #450

Description

@TobiasWrigstad

The line TYPE CHECKS below should not.

read trait T

read trait Get
  require val value:T
  def gett() : T
    this.value

linear trait Set
  require value:T
  def set(v:T) : void
    this.value = v

passive class Cell : Get + Set
  value:T

class Main
  object:Cell
  def main() : void
    let
      g : Get, w : Set = consume this.object  ---- TYPE CHECKS!
    in
      ()

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions