Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
6b6cbe43
Commit
6b6cbe43
authored
7 years ago
by
Tomas Stupka
Browse files
Options
Downloads
Patches
Plain Diff
a foreign object should not be automatically casted into a R type when assigned to a S4 slot
parent
3c80cf4f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/fastr/FastRSlotAssign.java
+2
-2
2 additions, 2 deletions
...oracle/truffle/r/nodes/builtin/fastr/FastRSlotAssign.java
with
2 additions
and
2 deletions
com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/fastr/FastRSlotAssign.java
+
2
−
2
View file @
6b6cbe43
/*
* Copyright (c) 2015, 201
7
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 201
8
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -51,7 +51,7 @@ public abstract class FastRSlotAssign extends RBuiltinNode.Arg4 {
casts
.
arg
(
"object"
).
mustNotBeNull
();
casts
.
arg
(
"name"
).
defaultError
(
Message
.
SLOT_INVALID_TYPE_OR_LEN
).
mustNotBeMissing
().
mustBe
(
stringValue
()).
asStringVector
().
mustBe
(
singleElement
()).
findFirst
();
casts
.
arg
(
"check"
).
mustNotBeMissing
().
asLogicalVector
().
findFirst
().
mustNotBeNA
(
Message
.
NA_UNEXP
).
map
(
toBoolean
());
casts
.
arg
(
"value"
).
mustNotBeMissing
();
casts
.
arg
(
"value"
).
castForeignObjects
(
false
).
mustNotBeMissing
();
}
@Child
private
InternStringNode
intern
=
InternStringNodeGen
.
create
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment